﻿using System;
using System.Collections.Generic;
using RoleAuthRes = BotonJXC.Entity.RoleAuthRes;
using RoleAuthResDAO = BotonJXC.DAO.RoleAuthResDAO;
using BotonJXC.Util;

namespace BotonJXC.BLL
{
    public class RoleAuthResBLL : BaseBLL<RoleAuthResDAO, RoleAuthRes, int>
    {
        public RoleAuthResBLL()
        {
        }

        public void Save(int roleId, IList<RoleAuthRes> roleAuthRes)
        {
            base.Dao.DeleteByRoleId(roleId);
            foreach (RoleAuthRes rar in roleAuthRes)
                Save(rar);
        }
    }
}